import { useLoaderData } from 'react-router-dom';

const Profile = () => {
  const profileData = useLoaderData();

  return (
    <div style={{ padding: '20px', border: '1px solid #eee' }}>
      <h2>个人资料（子页面）</h2>
      <p>用户信息：{JSON.stringify(profileData)}</p>
    </div>
  );
};

export default Profile;